﻿<UserControl 
    x:Class="AdventureWorksSL.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
    >
    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Current User's IP Address:" Margin="5"/>
                <TextBlock Name="userIP" Margin="5"/>
            </StackPanel>
            <Data:DataGrid IsReadOnly="True" Name="productsGrid" Height="Auto" Width="Auto"/>
            <StackPanel Orientation="Horizontal">
                <Button Content="Discount" Name="discountButton" Margin="5"/>
                <TextBox Name="discountPercent" Text="5" Margin="0,5"/>
                <TextBlock Text="%" Margin="2,8,0,2"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
